package com.fzu.normalservice.service;

import com.fzu.commonutil.params.DataResult;
import com.fzu.commonutil.util.PageVO;
import com.fzu.commonutil.entity.Housekeeper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzu.commonutil.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyq
 * @since 2023-03-26
 */
public interface HousekeeperService extends IService<Housekeeper> {

    /**
     * 获取家政人员分页列表
     * @param housekeeper
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageVO list(Housekeeper housekeeper, Integer pageNum, Integer pageSize);

    /**
     * 新增家政人员
     * @param housekeeper
     * @param user
     */
    void add(Housekeeper housekeeper, User user);

    /**
     * 修改家政人员信息
     * @param housekeeper
     * @param user
     */
    void update(Housekeeper housekeeper, User user);

    /**
     * 详情
     * @param id
     * @return
     */
    Housekeeper detail(Integer id);


    /**
     * 获取家政员统计数据
     * @param result
     * @param companyId
     * @return
     */
    DataResult housekeeperData(DataResult result, Integer companyId);
}
